package com.example.dessertstoressm.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("product")
public class Product implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = -7492639752670189553L;

    @TableField(value="productid")
    private String productId;
    @TableField(value="category")
    private String categoryId;
    private String name;
    @TableField(value="descn")
    private String description;

    public void setProductId(String productId) {
        this.productId = productId.trim();
    }
}
